package com.example.shadowcore;

import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * Author: chinadragon
 * Time: 2023/9/13 18:53
 */
public interface ContextTheme {
    // 传递上下文
    void attch(Activity attchActivity);


    // 传递生命周期

    void onCreate(@Nullable Bundle savedInstanceState);


    void onStart();


    void onRestart();

    void onResume();


    void onPause();

    void onStop();

    void onDestroy();

    void finish();

    void onSaveInstanceState(@NonNull Bundle outState);

    boolean onTouchEvent(MotionEvent event);

    void onBackPressed();

}
